One trick is to wrap the matrices inside a framed environment and putting the
location parameter there:
\starttext
\startformula
\startmatrix[left={\left(},right={\right)}]
\NC A \NC B \NR \NC C \NC D \NR
\stopmatrix
=
\startframed[location=top,frame=no,offset=none]
\startmatrix[left={\left
=bottom and location=top, but both give the same
error.
Do you have any ideas on how I can get the matrix in the desired locations?
Thank you in advance for your help.
Best regards,
Jacob
\starttext
\startformula
\startmatrix[left={\left(},right={\right)}]
\NC A \NC B \NR \NC C \NC D \NR
{\bi n}} \NC = 0 \NC\qquad\text{on }\,
\partial \Omega\times (0,+\infty)\NR
\NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR
\stopalignedcases
\stopformula
\startformula
\startmatrix
\NC ABC\NC ABC\NC ABC\NR
\NC AA \NC AA \NC AA \NR
\stopmatrix
ega.\NR
> \stopalignedcases
> \stopformula
>
> \stoptext
> % end bug-alignment.tex
I confirm that this is a bug, which was not there in the version from mid Dec.
It appears that the align key does not have any effect. Here's a simpler
example:
\definemathmatrix[matrix]
etween two rows of a matrix
> %D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between
> two columns of a matrix
> %D each macro takes an optional parameter giving the rule dimensions
> %D Example
> %D \type{\startmatrix \NC A \VR[depth 2mm] B \NR \HR[height 0.6pt
%D \macros{HR, VR}
%D \type{\HR} draws a horizontal rule between two rows of a matrix
%D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between
two columns of a matrix
%D each macro takes an optional parameter giving the rule dimensions
%D Example
%D \type{\startmatrix \NC
Dear Weber Mattias,
Please see page 10 of “mathalign.pdf” made by Aditya.
He showed the way of writing aligned math including matrices.
For example,
\startformula
\startmatrix[left={\left(\,},right={\,\right)}]
\NC 1 \NC 0 \NC 0 \NR
\NC 0 \NC 1 \NC 0 \NR
\NC 0 \NC 0 \NC 1
> Please see page 10 of “mathalign.pdf” made by Aditya.
> He showed the way of writing aligned math including matrices.
> For example,
>
> \startformula
>
> \startmatrix[left={\left(\,},right={\,\right)}]
>
> \NC 1 \NC 0 \NC 0 \NR
> \NC 0 \NC
whether using tables in math
mode is the proper way of doing things.
\startmatrix seems to ignore a \VL.
Any. suggestions?
Thanks,
Matthias
___
If your question is of interest to others as well, please add an entry
~ sequence ~ of ~ terms
\NR
\NC y
\NC = ok ~ left
\NR
\NC \startmatrix[left={\left\lbrack},right={\right\rbrack}]
\NC x \NR
\NC y \NR
\stopmatrix
\NC = why ~ right?
\NR
\NC y
\NC y
\NC = ok ~ left
\NR
\NC \startmatrix[left={\left\lbrack},right={\right\rbrack}]
\NC x \NR
\NC y \NR
\stopmatrix
\NC = why ~ right?
\NR
\NC y
\NC = ok ~ left ~ again
\NR
\NC y
\NC = ok ~ left
\NR
\NC \startmatrix[left={\left\lbrack},right={\right\rbrack}]
\NC x \NR
\NC y \NR
\stopmatrix
\NC = why ~ right?
\NR
\NC y
\NC = ok ~ left ~ again
\NR
\NC \startmatrix[left={\left\lbrack},right={\right\rbrack}]
\NC x \NR
\NC y \NR
\stopmatrix
\NC = why ~ right?
\NR
\NC y
\NC = ok ~ left ~ again
\NR
\stopalign
\stopformula
\stoptext
gives
https
hristoph Reller wrote:
> > > On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller
> > > <christoph.rel...@gmail.com> wrote:
> > >
> > > There seems to be a problem with the structure information added
> > > when using \start
toph.rel...@gmail.com <mailto:christoph.rel...@gmail.com>
<mailto:christoph.rel...@gmail.com
<mailto:christoph.rel...@gmail.com>>> wrote:
>
> There seems to be a problem with the structure information added
> when using \startmatrix:
>
> A
> >
> > There seems to be a problem with the structure information added
> > when using \startmatrix:
> >
> > A fix would be very much appreciated.
>
> should be ok now
>
Thank you Hans for this fix!
There seems to be, however, still a minor issue with a more
On 8/30/2017 9:45 AM, Christoph Reller wrote:
On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller
<christoph.rel...@gmail.com <mailto:christoph.rel...@gmail.com>> wrote:
There seems to be a problem with the structure information added
when using
\startmatrix:
\
On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller <christoph.rel...@gmail.com
> wrote:
> There seems to be a problem with the structure information added when using
> \startmatrix:
>
> \setuptagging[state=start]
> \starttext
> \math{
> \startmatrix
>
!
\egroup
\mathmatrixright
\endgroup
\popmacro\math_matrix_NC} % ungrouped!
\protect
\definemathmatrix[pmatrix][left={\left(}, right={\right)}, distance=2em]
\def\matOne{\startmatrix\NC 1 \NC 0 \NR\NC 0 \NC 1\NR\stopmatrix}
\def\matTwo{\startmatrix\NC a\NR\NC b\NR\stopmatrix}
\def\matThree
Hi Henri,
Your are right there is an issue with \startmathcases…\stopmathcases: the
equations are not numbered when using this structure.
As a temporary solution you can use \startmatrix…\stopmatrix as in the
following, or you can define your own \startalignedcases.
\starttext
\placeformula
Hi,
There seems to be a problem with the structure information added when using
\startmatrix:
\setuptagging[state=start]
\starttext
\math{
\startmatrix
\NC A \NR
\NC B \NR
\stopmatrix}
\stoptext
The log reports an open chain: document>1 => mtr>1 => mtd>1 => mtr&g
not seem to have any effect here.
Can you see the effect of the alignment?
\starttext
\startformula
\startmatrix[align={left,middle,right}]
\NC a \NC b \NC c \NR
\NC aa \NC bb \NC cc \NR
\NC aaa \NC bbb \NC ccc \NR
\stopmatrix
\stopformula
\stoptext
Wolfgang
?
\starttext
\startformula
\startmatrix[align={left,middle,right}]
\NC a \NC b \NC c \NR
\NC aa \NC bb \NC cc \NR
\NC aaa \NC bbb \NC ccc \NR
\stopmatrix
\stopformula
\stoptext
Thanks. I know that example. I just noticed it seemed to have no effect in the
other
anyone help me?
You have to use the \startmatrix environment.
- http://wiki.contextgarden.net/%5Cstartcases
- http://dl.contextgarden.net/myway/mathalign.pdf
Wolfgang
___
If your question is of interest to others
={\,\right.}]
\NC x - 2y + 2z \NC = 1 \NR
\NC 2 x + y - z \NC = 2 \NR
\NC 4 x - 3y + 6z \NC = 7 \NR
\stopalign
\stopformula
but it does not work.
Can anyone help me?
You have to use the \startmatrix environment.
- http://wiki.contextgarden.net/%5Cstartcases
- http
(\,},right={\,\right.}]
\NC x - 2y + 2z \NC = 1 \NR
\NC 2 x + y - z \NC = 2 \NR
\NC 4 x - 3y + 6z \NC = 7 \NR
\stopalign
\stopformula
but it does not work.
Can anyone help me?
You have to use the \startmatrix environment.
- http://wiki.contextgarden.net/%5Cstartcases
- http
Dear Luigi and listers,
Last year, I need to write a text for a linear algebra class.
Since there are many \startmatrix … \stopmatrix and matrix calculations, I
wrote a lua code which did matrix calculations and writing with a lot of help
from this list.
Using the code, I can write class
On 5/23/2014 3:48 PM, Jeong Dal wrote:
Dear Luigi and listers,
Last year, I need to write a text for a linear algebra class.
Since there are many \startmatrix … \stopmatrix and matrix calculations, I
wrote a lua code which did matrix calculations and writing with a lot of help
from this list
Many thanks for the enlightening answers.
The explanations about xml solved question 1 and \startmatrix\stopmatrix
solved question 4.
I'm now crunching xml input and handling it half in lua and half in tex
(and I'm verry happy about it).
I'm still struggling with a few points though
the previous text, so the pdf and xml
are fine in Context ?
Why not use \startmathalign etc. See:
http://dl.contextgarden.net/myway/mathalign.pdf
Sorry, I meant, \startmathmatrix (or \startmatrix) etc.
Aditya
Dear all,
I made a matrix as follows and I'd like to draw a red frame over the i-th row
in a matrix.
\startformula
\startmatrix[left={\left (\,},right={\,\right)}]
\NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR
\NC \vdots \NC \vdots \NC \vdots \NC \vdots \NR
\NC a_{i1} \NC a_{i2} \NC
On 25-7-2012 11:20, dalyoung wrote:
Dear all,
I made a matrix as follows and I'd like to draw a red frame over the i-th row
in a matrix.
\startformula
\startmatrix[left={\left (\,},right={\,\right)}]
\NC a_{11} \NC a_{12} \NC \dots \NC a_{1n} \NR
\NC \vdots \NC \vdots \NC \vdots \NC \vdots
Hi Dalyoung,
Is this what you want:
\setupcolors[state=start]
\def\RedMath{\mframed[frame=on,
framecolor=red,
offset=2pt,
% background=color,
% backgroundcolor=lightred,
% backgroundoffset=2pt
]}
\starttext
\startformula
\startmatrix[left={\left
Am 25.07.2012 um 11:43 schrieb Hans Hagen:
On 25-7-2012 11:20, dalyoung wrote:
Dear all,
I made a matrix as follows and I'd like to draw a red frame over the i-th
row in a matrix.
\startformula
\startmatrix[left={\left (\,},right={\,\right)}]
\NC a_{11} \NC a_{12} \NC \dots \NC a_{1n
Dear all,
In the following sample file, an error occurs in \startformula\startalign ...
\stopalign\stopformula.
The similar error occurs if I use \startformula\startmathcases.
but \startmatrix works well.
Did I do something wrong?
Thank you for reading.
Best regards,
Dalyoung
On 2012-07-22, at 8:21 AM, dalyoung hak...@me.com wrote:
Dear all,
In the following sample file, an error occurs in \startformula\startalign ...
\stopalign\stopformula.
The similar error occurs if I use \startformula\startmathcases.
but \startmatrix works well.
Did I do something
two more questions.
1. In the output of the following code, 'x' in the first column is vertically
centered, but matrix in the second column is not(located at top). What option
can solve this?
\starttable[|c|c|w4cm|w4cm|]
\HL
\NC A \VL B \VL C \VL D \NC\SR
\HL
\NC $x$ \VL \startmatrix
\NC x' = \NC
(and their location can be
controlled by location=(low|lohi|high) keys, but for some reason that is
not working in a table.
\starttable[|c|c|w4cm|w4cm|]
The normal syntax is w(4cm) ...
\HL
\NC A \VL B \VL C \VL D \NC\SR
\HL
\NC $x$ \VL \startmatrix
\NC x' = \NC \NR
.\NC y' = \NC \NR
\stopmatrix
}%
to
\setvalue{\e!stop #1}{\dostopmathmatrix}%
If someone wants to correct this in a working document, add
\let\stopmatrix\dostopmathmatrix
somewhere before \starttext
\starttext
\startformula
\startmatrix[left={\left(\,},right={\,\right)}]
\NC 0 \NR
\NC 0 \NR
\NC 0 \NR % removing this fixes
\setuvalue{\e!stop #1}{\dostopmathmatrix}%
to
\setvalue{\e!stop #1}{\dostopmathmatrix}%
If someone wants to correct this in a working document, add
\let\stopmatrix\dostopmathmatrix
somewhere before \starttext
\starttext
\startformula
\startmatrix[left={\left(\,},right={\,\right)}]
\NC 0 \NR
\NC 0
On 18-5-2011 4:18, Aditya Mahajan wrote:
Simpler example:
\def\A{\halign \bgroup ## \crcr}
\unexpanded\def\B{\crcr\egroup}
\def\C{\crcr\egroup}
\starttext
\ruledvbox{\A A \cr B \cr \B}
\ruledvbox{\A A \cr B \cr \C}
\ruledvbox{\A A \cr B \cr \relax \C}
\stoptext
I wonder what the
Hi Hans/ Aditya,
With the latest beta, \startmatrix's final \NR creates a
superfluous line, resulting in ugly output:
\starttext
\startformula
\startmatrix[left={\left(\,},right={\,\right)}]
\NC 0 \NR
\NC 0 \NR
\NC 0 \NR % removing this fixes the output
\stopmatrix
\stopformula
\stoptext
Best
On Tue, 17 May 2011, Taco Hoekwater wrote:
Hi Hans/ Aditya,
With the latest beta, \startmatrix's final \NR creates a
superfluous line, resulting in ugly output:
This has been present for a while now, so not introduced by any recent
change. I'll try to figure out what is going wrong (I
}{\dostopmathmatrix}%
If someone wants to correct this in a working document, add
\let\stopmatrix\dostopmathmatrix
somewhere before \starttext
\starttext
\startformula
\startmatrix[left={\left(\,},right={\,\right)}]
\NC 0 \NR
\NC 0 \NR
\NC 0 \NR % removing this fixes the output
\stopmatrix
\stopformula
Hi!
The following works well with default font but produces too small
parentheses with xits.
\doifmodeelse{xits}{\setupbodyfont[xits]}
\starttext
\startformula
\left(
\startmatrix[n=1]\dorecurse{10}{\NC 1\NR}\NC 1\NR\stopmatrix
\right)
\stopformula
\stoptext
Any ideas
On Sat, 16 Apr 2011, Yury G. Kudryashov wrote:
Hi!
The following works well with default font but produces too small
parentheses with xits.
\doifmodeelse{xits}{\setupbodyfont[xits]}
\starttext
\startformula
\left(
\startmatrix[n=1]\dorecurse{10}{\NC 1\NR}\NC 1\NR\stopmatrix
\right
to your suggestion, we can use \startmatrix for 3,4,5, but how to put
text?
I googled and found a similar question in LaTeX, but the answer is to use tikz.
How do you think?
Thank you again.
Best regards.
Dalyoung
According to your suggestion, we can use \startmatrix for 3,4,5, but how to put
text?
Do you also want equation numbers? If so, then that is not supported by
ConTeXt at the moment. If you do not want equation numbers, you can use
\startformula \startalign[n=1]
\NC equation 1 \NR
\NC equation 2 \NR
Dear Aditya,
Thank you for your nice solution.
\startformula \startalign[n=1]
\NC equation 1 \NR
\NC equation 2 \NR
\NC \startmatrix[left={\left.}, right={\right\}}, n=1, align=middle]
\NC equation 3 \NR
\NC equation 4 \NR
\NC equation 5 \NR
\stopmatrix
some text
in the \startformula\startalign ... \stopalign\stopformula?
You can use \startmatrix[left={\left.},right={\right\}] ... \stopmatrix
Aditya
___
If your question is of interest to others as well, please add an entry
\startformula
A = \startmatrix[left={\left(\,},right={\,\right)}]
\NC 1 \NC 2 \NR
\NC 3 \NC 4 \NR
\stopmatrix
\stopformula
\stoptext
=
I am using mkiv version:
MTXrun | current version: 2010.07.30 11:35
This is LuaTeX, Version beta-0.62.0-2010082314
Removing the last \NR
On Thu, 2 Sep 2010, Chen Shen wrote:
The matrix from the following example has an extra row at the end.
=
\starttext
\startformula
A = \startmatrix[left={\left(\,},right={\,\right)}]
\NC 1 \NC 2 \NR
\NC 3 \NC 4 \NR
\stopmatrix
\stopformula
\stoptext
=
I am using
The matrix from the following example has an extra row at the end.
=
\starttext
\startformula
A = \startmatrix[left={\left(\,},right={\,\right)}]
\NC 1 \NC 2 \NR
\NC 3 \NC 4 \NR
\stopmatrix
\stopformula
\stoptext
=
I am using mkiv version:
MTXrun | current
}\startmatrix[left={\left[\,},right={\,\right]}]
\NC {\displaystyle \frac{\partial f^{i}}{\partial x^{j}}}(X)\NR
\stopmatrix \neq 0$
for every $X\in\Omega$.
\stopitemize}{}
%\QED}{}
\stoptext
### End Example.
Question is now: How to move the frames, with the text Definition,
Not only inside
\startmatrix[align={right,left,right},distance=3pt,left={\left\{},
right={\right.}]
\NC -\Delta u + g(u) \NC{} = f \NC \quad\mbox{in } \Omega\NR
\NC \displaystyle {\partial u \over \partial {\bf n} } \NC{} =
h(u) \NC \quad\mbox{on } \partial\Omega \NR
\stopmatrix
\stopformula
\stoptext
...\stopcases?
\starttext
\startformula
\startmatrix[align={right,left,right},distance=3pt,left={\left\{},
right={\right.}]
\NC -\Delta u + g(u) \NC{} = f \NC \quad\mbox{in } \Omega\NR
\NC \displaystyle {\partial u \over \partial {\bf n} } \NC{} = h(u) \NC
\quad\mbox{on } \partial\Omega \NR
On 19 janv. 09, at 15:38, Aditya Mahajan wrote:
On Mon, 19 Jan 2009, Otared Kavian wrote:
[...]
So my question is: whether one can use \startcases ...\stopcases
instead of \startmatrix ... \stopmatrix in order to obtain the
result of the plain TeX example?
No, but there is not much
On Mon, 19 Jan 2009, Otared Kavian wrote:
On 19 janv. 09, at 15:38, Aditya Mahajan wrote:
On Mon, 19 Jan 2009, Otared Kavian wrote:
[...]
So my question is: whether one can use \startcases ...\stopcases instead
of \startmatrix ... \stopmatrix in order to obtain the result of the plain
\stopcases
\stopformula
\startformula
\startmatrix[align={right,left},distance=3pt,left={\left\{},
right={\right.}]
\NC 2x + 3y \NC{} = 10 \NR
\NC 3x + 2y \NC{} = 5 \NR
\stopmatrix
\stopformula
\stoptext
The {} after the alignment \NC is useful if the next symbol is something
that can
={right,left},distance=3pt]
\NC 2x + 3y \MC{} = 10 \NR
\NC 3x + 2y \MC{} = 5 \NR
\stopcases
\stopformula
\startformula
\startmatrix[align={right,left},distance=3pt,left={\left\{},
right={\right.}]
\NC 2x + 3y \NC{} = 10 \NR
\NC 3x + 2y \NC{} = 5 \NR
\stopmatrix
\startformula
\startcases[align={right,left},distance=3pt]
\NC 2x + 3y \MC{} = 10 \NR
\NC 3x + 2y \MC{} = 5 \NR
\stopcases
\stopformula
\startformula
\startmatrix[align={right,left},distance=3pt,left={\left\{},
right={\right.}]
\NC 2x + 3y \NC{} = 10 \NR
\NC 3x + 2y \NC{} = 5
{array}
\end{equation}
The correct way to translate array in ConTeXt is
\startformula
\startmatrix[align={right,left}]
\NC h \NC \sim \mu M^{2/3}f^{2/3}/r \NR
\NC \NC \sim M_{ch}^{5/3} f^{2/3}/r \NR
\stopmatrix
\stopformula
However, I think that the original input is wrong. The autor
troubles is of the kind:
\begin{equation}
\begin{array}{rl}
h \sim \mu M^{2/3}f^{2/3}/r\\
\sim M_{ch}^{5/3}f^{2/3}/r\\
\end{array}
\end{equation}
The correct way to translate array in ConTeXt is
\startformula
\startmatrix[align={right,left}]
\NC h \NC \sim \mu M^{2/3
On Sat, 24 Nov 2007 14:56:30 +0900
Jeong Dalyoung [EMAIL PROTECTED] wrote:
Dear Idris,
I have used buffers and \plcadefigures to display formula and figure
together. Here is my short sample file.
\startbuffer[one]
\startformula \startmatrix
\NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5
Dear Dalyoung,
On Fri, 23 Nov 2007 22:56:30 -0700, Jeong Dalyoung [EMAIL PROTECTED] wrote:
Dear Idris,
I have used buffers and \plcadefigures to display formula and figure
together. Here is my short sample file.
\startbuffer[one]
\startformula \startmatrix
\NC \NC e_1 \NC e_2 \NC e_3 \NC
]
\startformula \startmatrix
\NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR
\NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR
\NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0 \NR
\NC w \NC 1 \NC 1 \NC 0 \NC 1 \NC 0 \NR
\NC x \NC 0 \NC 0 \NC 1 \NC 0 \NC 1 \NR
\NC y \NC 1 \NC 0 \NC 0 \NC 1 \NC 0 \NR
\stopmatrix
Dear Idris,
I have used buffers and \plcadefigures to display formula and figure
together. Here is my short sample file.
\startbuffer[one]
\startformula \startmatrix
\NC \NC e_1 \NC e_2 \NC e_3 \NC e_5 \NC e_5 \NR
\NC u \NC 0 \NC 1 \NC 1 \NC 0 \NC 1 \NR
\NC v \NC 1 \NC 0 \NC 1 \NC 0 \NC 0
Hi,
I could not figure out how to add a hairline between two rows of a matrix.
Following example is compiling but only results in a bigger vertical space.
Infos/Hints are welcome...
\startformula \startmatrix
\NC {a_1 } \NC {a_2 } \NC {a_3 } \NC \ldots \NC {a_X } \NR
\NC {b_1
On Wed, 5 Sep 2007, Peter Schorsch wrote:
Hi,
I could not figure out how to add a hairline between two rows of a matrix.
Following example is compiling but only results in a bigger vertical space.
Infos/Hints are welcome...
\startformula \startmatrix
  \NC {a_1 } \NC {a_2 } \NC {a_3 } Â
option i.e.
when I say \startmatrix[align={right, etc }] everything is aligned
to the right but the other aligment options are ignored.
When I substitute *[modern]* with *[default] *as in
\definetypeface[MyFace] [mm] [math] [modern] *[default] *[encoding=ec]
In this instance all
the bug:
\definetypeface[mainface] [rm] [serif] [modern] [default] [encoding=texansi]
\definetypeface[mainface] [mm] [math] [modern] [modern] [encoding=texansi]
\setupbodyfont[mainface,11pt]
\loggingall
\starttext
\startformula
A = \startmatrix[align={left,right}]
\NC 11 \NC 2 \NR
\NC 2 \NC -5
to find bug. First, to illustrate the bug:
\definetypeface[mainface] [rm] [serif] [modern] [default] [encoding=texansi]
\definetypeface[mainface] [mm] [math] [modern] [modern] [encoding=texansi]
\setupbodyfont[mainface,11pt]
\loggingall
\starttext
\startformula
A = \startmatrix[align={left
to the aligment
I specify except for the first option i.e.
when I say \startmatrix[align={right, etc }] everything is aligned to
the right but the other aligment options are ignored.
When I substitute *[modern]* with *[default] *as in
\definetypeface[MyFace] [mm] [math] [modern
a \NC - \NC b \NC = \NC 3 \NR
\noalign{\hrule}
\NC 2a \NC \NC \NC = \NC 12 \NR
\stopalign \stopformula
\stoptext
Hmm... the width of the rule is too long, so lets use something with a
fixed width
\starttext
\startformula \startmatrix[n=5]
\NC a \NC + \NC b \NC = \NC 9 \NR
\NC
lets use something with a
fixed width
\starttext
\startformula \startmatrix[n=5]
\NC a \NC + \NC b \NC = \NC 9 \NR
\NC a \NC - \NC b \NC = \NC 3 \NR
\noalign{\hrule}
\NC 2a \NC \NC \NC = \NC 12 \NR
\stopmatrix \stopformula
\stoptext
Hmm... distance and alignment are wrong
\startmatrix[left=\left.,right=\right\},style=\rm]
\NC A \NC AA \NR
\NC B \NC BB \NR
\NC C \NC CC \NR
\NC D \NC DD \NR
\NC E \NC EE \NR
\stopmatrix \text{ description}
\stopformula
\stoptext
Wolfgang
___
ntg-context mailing list
ntg-context@ntg.nl
http
\eTD\eTR
\eTABLE
\stoptext
you can misuse the mathmode.
Hope not. This is only the part of the story -- minimal example.
Delimiter should be the part of more complex table.
\starttext
\startformula
\startmatrix[left=\left.,right=\right\},style=\rm]
\NC A \NC AA \NR
\NC
a matrix failed because:
1. Matrix does not see beyond the \NCs as align.
Comapre the output of
\startformula \startalign[n=2]
\NC a \NC = bx + c \NR
\NC \NC + ey \NR
\stopalign \stopformula
with
\startformula \startmatrix[n=2,distance=0pt, style=\displaystyle]
\NC a \NC = bx + c \NR
\cdot a + \lambda \cdot b \NC \NR
\stopcases
\text{(distributieve eigenschappen)}
\stopformula
or use a matrix (only one column)
\startformula
\startmatrix[left={\left.},right={\right\}}]
\NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR
\NC \lambda ( a + b
{(distributieve eigenschappen)}
\stopformula
or use a matrix (only one column)
\startformula
\startmatrix[left={\left.},right={\right\}}]
\NC (\lambda + \mu ) \cdot a = \lambda \cdot a + \mu \cdot a \NR
\NC \lambda ( a + b ) = \lambda \cdot a + \lambda \cdot b\NR
\stopmatrix
\text
Context supports everything that latex array provides, with a slightly
different syntax. Some extract from the update on myway on alignment
(I am still working on it)
% \def\ShowExample
% {\hairline
%\typebuffer
%\hairline
%\getbuffer}
\CONTEXT\ provides \tex{startmatrix} for generic
appear to work as it should. Sorry about the false alarm.
I'll try out the \startmatrix options as well to see if those will
fit my needs better for some constructions. Thanks for the detailed
syntax.
---Bruce
At 8:12 AM -0700 7/18/06, Aditya Mahajan wrote:
On Mon, 17 Jul 2006, Hans Hagen
interesting to see here \NR
\NC \int_0^1 x - 3 d\,x \NC Integral is in text mode \NR
\stopcases
\stopformula
\startformula
\startmatrix[n=2]
\NC x \NC y \NR
\NC \int_0^1 x - 3 d\,x \NC 20 \NR
\stopmatrix
\stopformula
Both integrals are in textstyle. It will be nice if one had
in amsmath, so can
not comment on whether the same is doable with context. Another
missing feature (I will send a detailed feature request soon) is that
matrices are always center aligned. I would like to have
\startmatrix[location=top|bottom|middle] to faithfully reproduce
aligned series
intercolumn
spacing correct while still allowing endlessly repeating columns.
Aditya Mahajan wrote:
Hi,
Is it possible to have allow math matrix column alignments to be
configurable, on the lines of align={left,left} of \startalign.
I want to be albe to say
\startformula
\startmatrix
correct while still allowing endlessly repeating columns.
Aditya Mahajan wrote:
Hi,
Is it possible to have allow math matrix column alignments to be
configurable, on the lines of align={left,left} of \startalign.
I want to be albe to say
\startformula
\startmatrix[align={right,left}]
\NC x \NC
\startmatrix[align={right,left}]
\NC x \NC = a + d \NR
\NC y \NC = d \NR
\stopmatrix
\stopformula
to give me
x = a + d
y = d
This is a contrived example. The actual equation that I want to type is
\startformula
\text{Let }{\cal R} = \bigcup_{P_{X_1},P_{X_2
Hi,
Is it possible to have allow math matrix column alignments to be
configurable, on the lines of align={left,left} of \startalign.
I want to be albe to say
\startformula
\startmatrix[align={right,left}]
\NC x \NC = a + d \NR
\NC y \NC = d \NR
\stopmatrix
\stopformula
to give me
88 matches
Mail list logo